import { MigrationInterface, QueryRunner } from "typeorm";

export class AlterUserToken1705286042645 implements MigrationInterface {
    name = 'AlterUserToken1705286042645'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            CREATE INDEX \`idx_token\` ON \`user_token\` (\`token\`)
        `);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            DROP INDEX \`idx_token\` ON \`user_token\`
        `);
    }

}
